//
//  VideoCallScoreNoTipsView.swift
//  GLUZSwift
//
//  Created by xyanl on 2025/3/18.
//  Copyright © 2025 考拉🐨. All rights reserved.
//
//  视频通话积分不足提示框
import UIKit
import Reusable

extension VideoCallScoreNoTipsView: NibLoadable {}

class VideoCallScoreNoTipsView: UIView {

    var cancelBlock: (() -> Void)?
    var goToPayBlock: (() -> Void)?
    
    @IBOutlet weak var iconImageView: UIImageView!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        backgroundColor = .clear
        
        let width = xScreenW - 32*2
        let height = width*391.0/642.0
        size = CGSize(width: xScreenW - 32*2, height: height)
        
        iconImageView.image = LanguageManager.isLanguageZH ? "ic_call_tips_zh".toImage: "ic_call_tips_ru".toImage
    }

    @IBAction func cancelAction(_ sender: Any) {
        cancelBlock?()
    }
    
    
    @IBAction func paymentAction(_ sender: Any) {
        goToPayBlock?()
    }
    
}
